package com.zilu.digitaltwin.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @author :caijianbao
 * @date : 2023/1/4 21:43
 */
@Data
public class CatalogConfigInfoDTO {

    private Long id;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date gmtCreate;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date gmtModified;

    private String type;

    private String code;

    private String name;

    /**
     * 是否有效 默认为1有效  0失效
     */
    private Integer effective;

    private List<CatalogDictDTO> dataList;

    /**
     * 实体中该属性状态集合
     */
    private List<EntityColumnStatusDTO> statusList;


    @Data
    public static class EntityColumnStatusDTO {

        private String entityCode;

        private String entityName;

        /**
         * 数据状态：0没有,1有,-1检测状态时异常
         */
        private Integer status;

        /**
         * 字段数据状态：0没有,1全部有,2部分有,-1检测状态时异常
         */
        private Integer columnStatus;

    }

}
